#ifndef DATAMIDI_H
#define DATAMIDI_H
#include "adata.h"
#include <cstring>

class DataMidi : public AData
{
public:
    enum MidiCommand {k_note_on = 0x90, k_note_off = 0x80};

    DataMidi(const char *data, size_t size);
    DataMidi(char byte1, char byte2, char byte3);
    ~DataMidi();
    const char * data() const {return data_;}
    size_t size() const {return size_;}
private:
    char * data_;
    size_t size_;
};

#endif // DATAMIDI_H
